﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ManageServiceStation.aspx.cs" Inherits="WXYW.ManageServiceStation" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    管理平台信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <asp:Button ID="addButton" runat="server" Text="添加平台" OnClick="addButton_Click" />
    <asp:GridView ID="productVersionGridView" runat="server" CssClass="tableList" AutoGenerateColumns="false"
        AllowPaging="true" PageSize="20" OnPageIndexChanging="productVersionGridView_PageIndexChanging"
        OnRowDataBound="productVersionGridView_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="平台" DataField="Name" />
            <asp:BoundField HeaderText="简称" DataField="ForShort" />
            <asp:BoundField HeaderText="所在城市" DataField="City" />
            <asp:BoundField HeaderText="电话" DataField="Phone" />
            <asp:BoundField HeaderText="传真" DataField="Fax" />
            <asp:BoundField HeaderText="联系人" DataField="ContactPerson" />
            <%-- <asp:BoundField HeaderText="电子邮件" DataField="EMail" />--%>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docedit.gif" />
                    <asp:LinkButton ID="editLinkButton" runat="server" OnClick="editLinkButton_Click"
                        CommandArgument='<%#Eval("ID") %>'>编辑</asp:LinkButton>
                    <img src="image/operateicon/docdelete.gif" />
                    <asp:LinkButton ID="deleteLinkButton" runat="server" OnClientClick="confirm('您确定要删除这个平台吗');"
                        OnClick="deleteLinkButton_Click" CommandArgument='<%#Eval("ID") %>'>删除</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:HiddenField ID="hideButton" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="hfServiceStation" runat="server" />
    <Ajax:ModalPopupExtender ID="serviceStationPopupExtender" TargetControlID="hideButton"
        PopupControlID="TransferProductPanel" BackgroundCssClass="modalBackground" runat="server"
        Drag="true" PopupDragHandleControlID="dragBar1" CancelControlID="cancelLinkButton">
    </Ajax:ModalPopupExtender>
    <asp:Panel ID="TransferProductPanel" CssClass="modalPopup" Width="550px" runat="server"
        Style="display: none">
        <!-- Header -->
        <div class="box-header" id="dragBar1">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2>
                平台信息</h2>
        </div>
        <div class="functionPanel">
            <table>
                <tr>
                    <td>
                        平台名称：
                    </td>
                    <td>
                        <asp:TextBox ID="serviceStationNameTextBox" runat="server" Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        简称：
                    </td>
                    <td>
                        <asp:TextBox ID="forShortTextBox" runat="server" Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        地扯：
                    </td>
                    <td>
                        <asp:TextBox ID="addressTextBox" runat="server"  Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        联系人：
                    </td>
                    <td>
                        <asp:TextBox ID="contactPersonTextBox" runat="server"  Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        所在城市：
                    </td>
                    <td>
                        <asp:TextBox ID="cityTextBox" runat="server"  Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        电话：
                    </td>
                    <td>
                        <asp:TextBox ID="phoneTextBox" runat="server"  Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        传真：
                    </td>
                    <td>
                        <asp:TextBox ID="faxTextBox" runat="server" Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        电子邮件：
                    </td>
                    <td>
                        <asp:TextBox ID="emailTextBox" runat="server"  Width="400px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <img src="image/operateicon/docdelete.gif" alt="" />
                        <asp:LinkButton ID="cancelLinkButton" runat="server">关闭</asp:LinkButton>
                        <img src="image/operateicon/check.gif" alt="" />
                        <asp:LinkButton ID="saveLinkButton" runat="server" OnClick="saveLinkButton_Click">保存</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
</asp:Content>
